<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/taglibs.jsp"%>
<%@ include file="/common/include/dictNames.jsp"%>
<%@ include file="/common/include/pageExpires.jsp"%>
<br>
<mytag:MyActionMsg />
<%
    String currLanguage = request.getParameter("language");
    if(currLanguage == null)
        currLanguage = sessionLocale.toString();
%>
<script>
function changeLanguage(lang){
    location.replace('/admin/exhibition/exhibitionAdd.jsp?language='+lang);
}
</script>

<table width="90%" cellspacing="0" cellpadding="0">
	<tr>
		<td height="30" class="ms02">&nbsp;&nbsp;</td>
	</tr>
	<tr>
			会展管理→会展信息维护→添加会展信息
			<td bgcolor="CDCDCD" height="1"></td>
	</tr>
</table>
<html:form action="/admin/exhibition/manageExhibition.do?CMD=add" method="post" enctype="multipart/form-data">
<table width="90%" cellspacing="0" cellpadding="0">
<tr>
	<td align="left">
		母语:
	</td>
	<td>
		<mytag:national name="language" onchange="changeLanguage(this.value)" 
             notEmpty="true" value="<%=currLanguage%>" dictName="<%=Constants.SYSLANGUAGE%>" />
	</td>
</tr>
<tr>
	<td align="left">
		国家:
	</td>
	<td>
		<mytag:national name="country" notEmpty="true" value="<%= sessionLocale.toString() %>" dictName="<%=Constants.ALLCOUNTRY%>"/>
	</td>
</tr>
<tr>
	<td>所属分类：</td>
          <td align="left">
<script>
function isParentCat(theSelect){
	for (var i = 0; i < theSelect.length; i++) {
		if (theSelect.options[i].selected == true 
			&& theSelect.options[i].pid =="") {
			return true;
		}
	}
	return false;
}
</script>
         <% 
            //构造 产品类别下拉菜单
    	    List maincatproduct = MemObjFactory.getDict("产品类别",currLanguage);
            boolean disableSelectParent = true; 
            out.println(JspHelper.getCatProductSelect(maincatproduct,"catExhibitionId",disableSelectParent));
        %>


       </td>
        </tr>
<tr>
	<td align="left">
		标题:
	</td>
	<td>
		<html:text property="title"/>
	</td>
</tr>
<tr>
	<td align="left">
		内容:
	</td>
	<td>
	<%@ taglib uri="http://fckeditor.net/tags-fckeditor" prefix="FCK" %>
	<script type="text/javascript" src="/FCKeditor/fckeditor.js"></script>
	<FCK:editor id="content" basePath="/common/webeditor/"
		autoDetectLanguage="false"
		defaultLanguage="<%=JspHelper.getFCKLang("zh_CN") %>"
		imageUploadURL="/editor/filemanager/upload/simpleuploader?Type=Image"
		linkUploadURL="/editor/filemanager/upload/simpleuploader?Type=File"
		flashUploadURL="/editor/filemanager/upload/simpleuploader?Type=Flash">
	</FCK:editor>
	</td>
</tr>
<tr>
	<td align="left">
		时间:
	</td>
	<td>
		<mytag:CalendarInput name="startTime" id="startTime" imgId="startTime_img" />—
		<mytag:CalendarInput name="endTime" id="endTime" imgId="endTime_img" />
	</td>
</tr>
<tr>
	<td align="left">
		图片上传:
	</td>
	<td>
		<html:file property="imagePath" />
	</td>
</tr>
<tr>
	<td colspan=2 align="center">
		<input type="submit" value="保存">
	</td>
</tr>
</table>
</html:form>
